/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component, PropTypes } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View,
  TextInput,
  Image,
  ScrollView,
  ListView,
  Navigator,
  TouchableHighlight
} from 'react-native';

import Login from './Login';
import MyComponent from './MyComponent';
import Demo from './Demo';

class FirstApp extends Component {
	constructor(props) {
		super(props);
		
	}

	getMovies() {
		return fetch('http://facebook.github.io/react-native/movies.json')
			.then((response) => response.json())
			.then((responseJson) => {
				return responseJson.movies;
			})
			.catch((error) => {
				console.error(error);
			});
	}
  render() {
    return (
    	<Login/>
    	//<MyComponent />
    	//<Login account='acc' pwd='pwd'/>
    	)
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5,
  },
  bigblue: {
  	color: 'blue',
  	fontWeight: 'bold',
  	fontSize: 30,
  },
  red: {
  	color: 'red',
  }
});

AppRegistry.registerComponent('FirstApp', () => FirstApp);
